<form action="{:sysuri()}" method="post" data-auto="true" class="layui-form layui-card" data-table-id="BaseTable">

    <div class="layui-card-body padding-left-40">
        <label class="layui-form-item relative block">
            <span class="help-label"><b>品牌</b></span>
            <input maxlength="500" class="layui-input" name="brand" value='{$vo.brand|default=""}'
                   vali-name="品牌" placeholder="请输入品牌">
        </label>

        <label class="layui-form-item relative block">
            <span class="help-label"><b>名称</b></span>
            <input maxlength="500" class="layui-input" name="name" value='{$vo.name|default=""}'
                   vali-name="名称" placeholder="请输入名称">
        </label>

        <label class="layui-form-item relative block">
            <span class="help-label"><b>描述</b></span>
            <textarea name="description" class="layui-textarea"
                      placeholder="请输入描述">{$vo.description|default=''}</textarea>
        </label>

        <label class="layui-form-item relative block">
            <span class="help-label"><b>图片</b></span>
            <label class="relative block label-required-null">
                <input class="layui-input" required  vali-name="图片" placeholder="请上传图片" value="{$vo.image|default=''}" name="image">
                <a class="input-right-icon layui-icon layui-icon-upload-drag" data-file="btn" data-type="webp,ttf,png,jpg,jpeg" data-field="image"></a>
            </label>
        <!--    <div class="help-block sub-span-blue">
                建议上传 <span>JPG</span>,<span>PNG</span>,<span>JPEG</span> 图片，保存后会自动生成 <span>48x48</span> 的 <span>ICO</span> 文件 ~
            </div>-->
        </label>

        <label class="layui-form-item relative block">
            <span class="help-label"><b>价格</b></span>
            <input maxlength="500" class="layui-input" name="amount" value='{$vo.amount|default=""}'
                   vali-name="价格" placeholder="请输入价格">
        </label>
    </div>

    <div class="hr-line-dashed"></div>
    {notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}

    <div class="layui-form-item text-center">
        <button class="layui-btn" type='submit'>保存</button>
        <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消吗？" data-close>取消
        </button>
    </div>

</form>